package com.totoro.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @author TOTORO
 * @date 2021/7/7 17:19
 * 产品pojo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Product extends PublicAttr{
    private int id;
    private String productName;
    private String spuAttrList;
    private String productDetailHtml;
    /** 注意：该属性仅仅用于映射商品不同的sku属性 ↓↓↓ */
    private int skuCode;
    private int belongCategoryId;
    private int productCount;
    private int itMethod;
    private double beforePrice;
    private double nowPrice;
    private double productDiscount;
    private int clickCount;
    private int isActivity;
    private String activityName;
    private double activityDiscount;
    private int commentCount;
    private int dealCount;
    private int collectCount;
    private int isLanunched;
    private int cid;
    private int sid;
    private int slid;
    private int scid;
    private String publishTime;
    private String deleteTime;
    /**
     * 该cartId与数据库无关系，仅仅用于映射购物车商品id ↓↓
     */
    private int cartId;
    private int isHaveLogistics;
    private List<ProductImage> productImages;
    private ProductMonthDeal productMonthDeal;
    private Shop shop;
    private ProductSpecs productSpecs;
}
